import { defineStore } from "pinia";
import {getList} from '@/apis/category/index'
const useCategoryStore = defineStore('categoryStore',{
    state:()=>{
        return {
            goodsList:[]
        }
    },
    actions:{
      async getGoodsList() {
        let result = await getList()
        this.goodsList = result.result
      }
    },
    getters:{

    }
})

export default useCategoryStore